export function jieliu(func, offsetTime = 1000) {
    let markTime = 0;
    return function (event) {
        let _this = event.target;
        let now = new Date().getTime();
        if (now - markTime > offsetTime) {
            func.call(_this, event);
            markTime = now;
        }
    };
}
export function fangdou(func, offsetTime = 1000) {
    let timer = 0;
    return function (event) {
        let _this = event.target;
        if (timer) {
            clearTimeout(timer);
        }
        timer = setTimeout(() => {
            func.call(_this, event);
        }, offsetTime);
        console.log(timer);
    };
}
